package cop;

import java.awt.Graphics2D;

import engine.Actor;

public class Button extends Actor {

	private String string;

	public Button() {}

	public Button(String string, String sprite) {
		setString(string);
		setSpr(sprite);
	}

	public void setString(String string) {
		this.string = string;
	}

	public String getString() {
		return string;
	}

	@Override
	public void paint(Graphics2D g) {
		super.paint(g);
		g.drawString(string, getXPos(), getYPos());
	}

}
